package circular_dependence;

import circular_dependence.bean.ClassA;
import circular_dependence.bean.ClassB;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 描述：
 *
 * @author 🧑 ‍wanwei
 * @since 2022-08-15 09:34
 */
public class Run {

	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath:/META-INF/c_d/dependency-lookup-context.xml");

		ClassA classA = applicationContext.getBean(ClassA.class);
		ClassB classB = applicationContext.getBean(ClassB.class);

		System.out.println(classA);
		System.out.println(classB);
	}
}
